package ch08;

class ExceptionEx16 {
	public static void main(String[] args) {
		method1();
	}

	static void method1() {
		try {
			throw new Exception();
		} catch (Exception e) {
			System.out.println("exception is handled in method1().");
			e.printStackTrace();
		}
	}
}
/*
exception is handled in method1().
java.lang.Exception
	at ch08.ExceptionEx17.method1(ExceptionEx17.java:10)
	at ch08.ExceptionEx17.main(ExceptionEx17.java:5)
*/